import { ref } from 'vue'
import { defineStore } from 'pinia'

export const useCounterStore = defineStore('my', () => {
  
    let myData=ref({
          username:localStorage.getItem('username'),
          phone:'19335718971',
          img:'https://fastly.jsdelivr.net/npm/@vant/assets/cat.jpeg'
    })
    
  return { myData }
},
  // 持久化
   {
    persist: true,
  },
)
